//
//  InSoundDetail.m
//  Inner  Voice
//
//  Created by 徐海宇 on 16/3/7.
//  Copyright © 2016年 徐海宇. All rights reserved.
//

#import "InSoundDetail.h"

#import <AFNetworking.h>

@interface InSoundDetail ()

//@property (nonatomic,copy)NSString *sound_creater_id;

//@property (nonatomic,copy)NSString *sound_channel_id;

@end


@implementation InSoundDetail


//+ (InSoundDetail *)soundDetailWithSoundID:(int)soundID {
//    
//    InSoundDetail *soundDetail = [[InSoundDetail alloc]init];
//    
//    [soundDetail loadSoundDetailWithSoundID:soundID];
//    
//    [soundDetail loadSoundChannel];
//    
//    return soundDetail;
//}
//
//
//- (void)loadSoundDetailWithSoundID:(int)soundid {
//    NSString *url = [NSString stringWithFormat:@"http://1.wangtest11.applinzi.com/home/Banner/backsoundRequest?soundid=%d",soundid];
//    
//    AFHTTPSessionManager *httpSession = [AFHTTPSessionManager manager];
//    
//    
//    [httpSession GET:url parameters:nil progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
//        
////        InSoundDetail *soundDetail = [[InSoundDetail alloc]init];
//        NSArray *responseArray = responseObject[@"data"];
//        
//        self.sound_info = responseArray[0][@"info"];
//        
//        self.sound_comment_count = responseArray[0][@"comment_count"];
//        
//        self.sound_download_count = responseArray[0][@"download_count"];
//        
//        self.sound_like_count = responseArray[0][@"like_count"];
//        
//        self.sound_picture = responseArray[0][@"picture"];
//        
//        self.sound_share_count = responseArray[0][@"share_count"];
//        
//        self.sound_name = responseArray[0][@"name"];
//        
//        self.sound_creater_id = responseArray[0][@"user_id"];
//        
//        self.sound_channel_id = responseArray[0][@"channel_id"];
//        
//        
//    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
//        NSLog(@"%@",error);
//    }];
//    
//}
//
//
//- (void)loadSoundChannel {
//    NSString *url = [NSString stringWithFormat:@"http://1.wangtest11.applinzi.com/home/Banner/backchannelRequest?channelid=%@",self.sound_channel_id];
//    
//    AFHTTPSessionManager *httpManager = [AFHTTPSessionManager manager];
//    
//    [httpManager GET:url parameters:nil progress:nil success:^(NSURLSessionDataTask * _Nonnull task, id  _Nullable responseObject) {
//        
//        NSArray *responseArray = responseObject[@"data"];
//        
//        self.sound_channel_icon = responseArray[0][@"photo"];
//        
//        self.sound_channel_name = responseArray[0][@"name"];
//        
//    } failure:^(NSURLSessionDataTask * _Nullable task, NSError * _Nonnull error) {
//        NSLog(@"%@",error);
//    }];
//}


@end
